<?php
namespace app\index\validate;

use think\Validate;

class Login extends Validate
{
    protected $rule = [
        'email' => 'require',
        'mail_code' => 'require',
		'device_id' => 'require',
		'is_bind' => 'require'
    ];

    protected $message = [
        'email.require'        => '邮件地址不能为空',
        'mail_code.require'    => '验证码不能为空',
		'device_id.require' => '设备ID不能为空',
		'is_bind.require' => '是否绑定邮箱标识不能为空',
    ];

    protected $scene = [
        'mail_login' => ['email','mail_code','device_id','is_bind'],
        'send_code'  => ['email']
    ];
}